{% extends 'base.html' %}

{% block title %}{{website.domain|escape}} - Demand OpenID{% endblock %}

{% block content %}

{% if not website.status %}
<div style="float:right;width:200px;border:1px dashed #999;padding:.5em;background-color:#fff;">
<h4 style="margin:0;margin-bottom:.5em;color:#090;">Work at {{website.domain|escape}}?</h4>
Get started with OpenID at
  <a href="http://openid.net/developers">openid.net/developers</a>
</div>
{% endif %}

<span class="title">{{ website.domain|escape }}</span>
<a href="http://{{website.domain|escape}}" class="subtle smaller" rel="nofollow">visit</a>

<div class="smalltitle" style="margin-top:.5em;"> 
Status:
{% if website.status %}
<span class="good">OpenID login supported!</span>
{% else %}
<span class="bad">No OpenID login</span>
{% endif %}
</div>

<div style="margin-top:1em;margin-bottom:1em;">
<span>{{website.votes}} pe{{website.votes|pluralize:"rson,ople"}}
  {{website.votes|pluralize:"wants,want"}} OpenID on {{ website.domain|escape }}</span>
{% if lip_not_voted %}
&nbsp;<a class="subtle" href="/add?url=http%3A//{{website.domain|urlencode}}">Me too!</a>
{% endif %}
</div>

<div class="vcol">
{% for v in votes1 %}
<div class="vcolitem">
  <a href="/voter?openid={{v.voter.openid|urlencode}}">{{v.voter.pretty_openid|escape}}</a>
</div>
{% endfor %}
</div>
<div class="vcol">
{% for v in votes2 %}
<div class="vcolitem">
  <a href="/voter?openid={{v.voter.openid|urlencode}}">{{v.voter.pretty_openid|escape}}</a>
</div>
{% endfor %}
</div>
<div class="vcol">
{% for v in votes3 %}
<div class="vcolitem">
  <a href="/voter?openid={{v.voter.openid|urlencode}}">{{v.voter.pretty_openid|escape}}</a>
</div>
{% endfor %}
</div>

<div style="clear:both;"></div>

{% endblock %}
